﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 测试连线2
{
    internal class Class1
    {
    }
    // 定义节点类
    public class CircuitNode
    {
        public double X { get; set; }
        public double Y { get; set; }
        public string Id { get; set; }

        public CircuitNode(double x, double y, string id)
        {
            X = x;
            Y = y;
            Id = id;
        }
    }

    // 定义连线类
    public class CircuitConnection
    {
        public CircuitNode StartNode { get; set; }
        public CircuitNode EndNode { get; set; }

        public CircuitConnection(CircuitNode startNode, CircuitNode endNode)
        {
            StartNode = startNode;
            EndNode = endNode;
        }
    }
}
